/**
 * 通知api
 */
import { axios } from '@/utils/request';
const hardcodeUrl = '';
const api = {
  notice: hardcodeUrl + 'msg/upgrade-message',
  template: hardcodeUrl + 'msg/template-config'
};

/**
 * 获取通知列表
 * @param {*} params
 */
export function getNoticeList(params) {
  return axios({
    url: api.notice + '/listmsg',
    method: 'get',
    params
  });
}

/**
 * 关闭消息模板
 * @param {*} data 
 */
export function closeNotice(data) {
  return axios({
    url: api.template + '/change-status',
    method: 'get',
    params
  });
}